package com.ruoyi.cs.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ruoyi.cs.domain.TGoodsUpgrate;
import com.ruoyi.cs.domain.vo.TGoodsUpgrateRecentlyVo;
import org.omg.CORBA.OBJ_ADAPTER;

/**
 * 幸运饰品升级记录Mapper接口
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
public interface TGoodsUpgrateMapper 
{
    /**
     * 查询幸运饰品升级记录
     * 
     * @param luckyId 幸运饰品升级记录ID
     * @return 幸运饰品升级记录
     */
    public TGoodsUpgrate selectTGoodsUpgrateById(String luckyId);

    /**
     * 查询幸运饰品升级记录列表
     * 
     * @param tGoodsUpgrate 幸运饰品升级记录
     * @return 幸运饰品升级记录集合
     */
    public List<TGoodsUpgrate> selectTGoodsUpgrateList(TGoodsUpgrate tGoodsUpgrate);

    /**
     * 新增幸运饰品升级记录
     * 
     * @param tGoodsUpgrate 幸运饰品升级记录
     * @return 结果
     */
    public int insertTGoodsUpgrate(TGoodsUpgrate tGoodsUpgrate);

    /**
     * 修改幸运饰品升级记录
     * 
     * @param tGoodsUpgrate 幸运饰品升级记录
     * @return 结果
     */
    public int updateTGoodsUpgrate(TGoodsUpgrate tGoodsUpgrate);

    /**
     * 删除幸运饰品升级记录
     * 
     * @param luckyId 幸运饰品升级记录ID
     * @return 结果
     */
    public int deleteTGoodsUpgrateById(String luckyId);

    /**
     * 批量删除幸运饰品升级记录
     * 
     * @param luckyIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTGoodsUpgrateByIds(String[] luckyIds);

    /**
     * 饰品升级记录列表
     * @return
     */
    public List<TGoodsUpgrate> listBack(TGoodsUpgrate tGoodsUpgrate);

    /**幸运饰品利润统计*/
    public Map<String, Object> luckCount(String goodsId);

    /**
     * 幸运饰品最近掉落
     * @return
     */
    public List<TGoodsUpgrateRecentlyVo> recentlyOpen(String goodsId);

    /**
     * 幸运饰品排名列表
     * @param type
     * @return
     */
    public List<TGoodsUpgrate> upgrateRanking(String type);

    /**批量新增*/
    public int batchInsert(List<TGoodsUpgrate> list);
}
